home *** CD-ROM | disk | FTP | other *** search
- #include <ft2build.h>
- #include "ttrender.h"
-
- /* === DEBUG STUFF === */
- /* comment TTR_DEBUG definition to turn debug messages off */
-
- //#define TTR_DEBUG 1
-
- #ifdef TTR_DEBUG
- #define USELIB_DBG(a) struct Library *##a = Ttb->ttb_##a;
- #define DBG(a) FPrintf(Ttb->debug, a "\n")
- #define DBG1(a,b) FPrintf(Ttb->debug, a "\n",(LONG)b)
- #define DBG2(a,b,c) FPrintf(Ttb->debug, a "\n",(LONG)b,(LONG)c)
- #else
- #define USELIB_DBG(a)
- #define DBG(a)
- #define DBG1(a,b)
- #define DBG2(a,b,c)
- #endif
-
- /* ====== PRIVATE STRUCTURES, DO NOT TOUCH! ====== */
-
- struct RenderEnv
- {
- struct RastPort *re_TargetRPort;
- struct ColorMap *re_TargetCMap;
- BOOL re_Antialias;
- };
-
- struct TTRenderBase
- {
- struct Library ttb_Lib;
- struct Library *ttb_SysBase;
- struct Library *ttb_DOSBase;
- struct Library *ttb_GfxBase;
- struct Library *ttb_CyberGfxBase;
- struct Library *ttb_UtilityBase;
- struct TTRenderBase *ttb_RealTTRenderBase;
- APTR ttb_SegList;
- FT_Library ttb_FTLib;
- FT_Face ttb_Face;
- struct CachedSize *ttb_CurrentCache;
- struct MinList ttb_MemoryCache; /* list of CachedFont structures */
- ULONG ttb_MemCacheSize; /* valid in real base only */
- // WORD ttb_NoSmoothMin;
- // WORD ttb_NoSmoothMax;
- ULONG ttb_Ascender; /* recalculated ascender of the current font */
- ULONG ttb_Descender; /* recalculated (positive) descender */
- UWORD *ttb_CodePage;
- APTR ttb_MemPool;
-
- /* local for every opening */
-
- struct RenderEnv ttb_RenderEnv;
-
- /* debug only */
-
- #ifdef TTR_DEBUG
- BPTR debug;
- #endif
- };
-
-
-